package sohu.com;
public class Triangle{
    double a,b,c;
    public double getArea(){
	double p = (a+b+c)/2.0;
	double area = Math.sqrt(p*(p-a)*(p-b)*(p-c));
	return area;
    }
    public void setSides(double x,double y,double z){
	a=x;
	b=y;
	c=z;
    }
}